<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<div id="projectNetworkSection" class="networkSection">

	<c:url scope="page" value="/project/list.html" var="projectNetworkListURL">
		<c:param name="id" value="${entity.id}"/>
	</c:url>

	<div id="projectNetworkTitle" class="networkTitle">
		<a href="${projectNetworkListURL}">Projects</a>
	</div> <!-- #projectNetworkTitle -->

	<div id="projectNetwork" class="network">
		
		<c:if test="${entity.noOfActiveProjectRelationships != 0}">

			<c:forEach items="${entity.projectsInNetwork}" var="project">
				<c:url scope="page" value="/project/profile.html" var="projectProfileURL">
					<c:param name="id" value="${project.id}"/>
				</c:url>
				<c:url scope="page" value="/getImage.do" var="projectImg">
					<c:param name="imgsrc" value="${project.imgSrc}"/>
				</c:url>
			
				<div class="networkMember">
					<div class="networkMemberImg">
						<a href="${projectProfileURL}">
							<img src="${projectImg}" width="60" class="networkMemberImg" />
						</a>
					</div>
					<div class="networkMemberName">
						<a href="${projectProfileURL}">${project.name}</a>
					</div>
				</div> <!-- .networkMember -->
			</c:forEach>
		</c:if>

		<hr/>
	</div> <!-- #projectNetwork -->

	<div id="allProjectNetworkMembers" class="allNetworkMembers">
		<a href="${projectNetworkListURL}">&raquo; See all ${entity.projectNetworkSize} projects</a>
	</div><!-- .seeAllNetworkMembers -->
</div> <!-- #projectNetworkSection -->

